<?php

namespace app\api\controller\logistics;


use app\common\controller\qyg\Api;
use think\Exception;
use think\Request;

class Comment extends Api
{

    public $noNeedRight = "*";

    public $noNeedLogin = ["search_list"];

    protected $service;

    public function __construct()
    {
        parent::__construct();
        $this->service = new \app\common\service\logistics\Comment();
    }

    public function send(Request $request)
    {
        if(!$request->isPost()){
            $this->error("非法请求");
        }
        try {
            $this->success("操作成功",$this->service->send($this->auth,$request));
        }catch (Exception $e){
            $this->error($e->getMessage());
        }
    }

    public function com_list(Request $request)
    {
        try {
            $this->success("操作成功",$this->service->com_list($request));
        }catch (Exception $e){
            $this->error($e->getMessage());
        }
    }
}